<?php
function smarty_modifier_yoyosearch(&$content, $patterns = "", $tag = "strong", $style = "color:red;") {
				if(empty($patterns)) return $content;

				if(!is_array($patterns)) $patterns = array($patterns);

				$replacements = array();

				$pp = array();
				foreach($patterns as $key => $p) {
								if(!$p) {
												continue;
								}
								$pp[$key] = "/".$p."/";
								$replacements[$key] = "<".$tag." style=\"".$style."\">".$p."</".$tag.">";
				}

				$content = preg_replace($pp, $replacements, $content);

				return $content;
}
?>